API Reference > OdGe Classes > OdGeVector3d Class > OdGeVector3d Operators > [] Operator > OdGeVector3d::[] Operator (unsigned int)
OdGeVector3d::[] Operator (unsigned int)
Syntax
C++
double operator [](unsigned int i) const;
Parameters 
Description 
unsigned int i 
[in] Index of coordinate. 

Returns the ith coordinate of this vector. 

 

  • 0 returns the X-coordinate.
  • 1 returns the Y-coordinate.
  • 2 returns the Z-coordinate.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.